package com.example.xloong.mymvvm.retrofit;

import com.example.xloong.mymvvm.bean.NewsBean;
import com.example.xloong.mymvvm.utiles.IntentUtil;

import io.reactivex.Observable;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by Xloong on 2018/1/25.
 */

public interface RetrofitInterface {

    @GET(IntentUtil.URL_PATH)
    Observable<NewsBean> getNewsData(@Query("page") String page,@Query("category_id") String id);
}
